package com.xiguaji.tiktok.utils;

import com.xiguaji.boot.toolkit.jdbc.generate.DbConfig;
import com.xiguaji.boot.toolkit.jdbc.generate.Generate;

public class GE {


    public static void main(String[] args) {
        String FILE_PATH = "\\src\\main\\java\\com\\xiguaji\\tiktok\\v1\\ins\\media\\model";
        String DATA_BASE_NAME = "ins";
        String URL = "rm-0xix407p15fwdey3088370.mysql.rds.aliyuncs.com";
        String JDBC_DRIVER = "com.mysql.jdbc.Driver";
        String USER_NAME = "us_tiktok";
        String PASSWORD = "AB2DZ408ETG&*P7N";

        //多个表用'',分隔
        String IN_TABLES = "'ins_rel_media_tagger_user'";
        //是否创建dao
        boolean IS_DAO = false;
        boolean IS_SERVICE = false;

        DbConfig config = new DbConfig();
        config.setFilePath(FILE_PATH);
        config.setDataBaseName(DATA_BASE_NAME);
        config.setUrl(URL);
        config.setPort("3306");
        config.setDriver(JDBC_DRIVER);
        config.setUser(USER_NAME);
        config.setPassword(PASSWORD);
        config.setInTables(IN_TABLES);
        config.setCreateDao(IS_DAO);
        config.setCreateService(IS_SERVICE);
        config.setAuthor("yzz");


        Generate generate = new Generate();
        generate.CreateBean(config);

        //generate.CreateDao("system_admin/src/main/java/com/system/bean","BusinessDutyLog");
        //generate.CreateService("system_admin/src/main/java/com/system/bean","BusinessDutyLog");



    }
}
